'use strict';

var http = require('http');
var server = http.createServer(function (request, response) {
    response.writeHead(200, {'Content-Type': 'text/plain'});
    response.end(someJavaMethod());
});

// server.listen(8000);
console.log('Test Server running at http://127.0.0.1:8000/');

var fs = require('fs');

fs.readFile('test/src/main/resources/nodeJSTest.js', 'utf-8', function (err, data) {
    if (err) {
        console.log(err);
    } else {
        console.log(data);
    }
});
module.exports = server;